package Test1008;

public class Test05 {
    public static void main(String[] args) {
        //求1-1000之间的数的和
        //求1-20之间的数的乘积(double)
        int sum = 0;
        for (int i = 1; i <=1000 ; i++) {
            sum+=i;
        }
        System.out.println("1-1000之间的数的和:"+sum);
        double a = 1;
        for (double j = 1; j <=20 ; j++) {
            a*=j;
        }
        System.out.println("1-20之间的数的乘积"+a);
    }
}
